package com.czh.subject.infra.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czh.subject.infra.basic.entity.SubjectLiked;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 题目点赞表(SubjectLiked)表数据库访问层
 *
 * @author caozaihui
 * @since 2024-09-14 11:39:39
 */
@Mapper
public interface SubjectLikedMapper extends BaseMapper<SubjectLiked> {

    /**
     * @param subjectLiked 实例对象
     * @return 实例对象
     * @author caozaihui
     * @description 分页查询数据
     * @date 2024-09-14 11:39:39
     */
    List<SubjectLiked> selectSubjectLikedList(SubjectLiked subjectLiked);

    SubjectLiked selectSubjectLiked(SubjectLiked subjectLiked);

    int deleteByConditionList(@Param("subjectLikedList") List<SubjectLiked> subjectLikedList);

    List<SubjectLiked> selectSubjectLikedPage(@Param("subjectLiked") SubjectLiked subjectLiked,@Param("start") int start,@Param("pageSize") int pageSize);

    int batchInsertOrUpdate(@Param("subjectLikedList") List<SubjectLiked> subjectLikedList);

    int count(@Param("subjectLiked") SubjectLiked subjectLiked);
}

